from test.test5 import Ui_Form
import sys
from PyQt5.QtWidgets import *

class Form5(QMainWindow, Ui_Form):
    def __init__(self):
        super(Form5, self).__init__()
        self.setupUi(self)
        self.radioButton.setChecked(True)
        self.lineEdit_3.setEnabled(False)
        self.radioButton.toggled.connect(self.continueMode)
        self.radioButton_3.toggled.connect(self.intervalMode)

    def continueMode(self):
        self.lineEdit_2.setEnabled(True)
        self.lineEdit_3.setEnabled(False)

    def intervalMode(self):
        self.lineEdit_2.setEnabled(False)
        self.lineEdit_3.setEnabled(True)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    mainForm = Form5()
    mainForm.show()
    sys.exit(app.exec_())


